package com.nuoniu.sibanyun.entity.crm;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.nuoniu.sibanyun.common.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * <p>
 * 客户联系人历史记录
 * </p>
 *
 * @author 小啊刚
 * @since 2022-01-21
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("crm_linkman_history_record")
@ApiModel(value="CrmLinkmanHistoryRecord对象", description="客户联系人")
public class CrmLinkmanHistoryRecord extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "联系人id")
    @TableField("linkman_id")
    private Long linkmanId;

    @ApiModelProperty(value = "租户ID")
    @TableField("company_id")
    private Integer companyId;

    @ApiModelProperty(value = "客户ID")
    @TableField("crm_id")
    private Integer crmId;

    @ApiModelProperty(value = "客户名称")
    @TableField("crm_name")
    private String crmName;

    @ApiModelProperty(value = "姓名")
    @TableField("name")
    private String name;

    @ApiModelProperty(value = "性别")
    @TableField("gender")
    private String gender;

    @ApiModelProperty(value = "拼音码")
    @TableField("letter_code")
    private String letterCode;

    @ApiModelProperty(value = "生日")
    @TableField("birthday")
    private LocalDateTime birthday;

    @ApiModelProperty(value = "部门")
    @TableField("dept")
    private String dept;

    @ApiModelProperty(value = "职务")
    @TableField("position")
    private String position;

    @ApiModelProperty(value = "办公电话")
    @TableField("office_phone")
    private String officePhone;

    @ApiModelProperty(value = "手机")
    @TableField("mobile")
    private String mobile;

    @ApiModelProperty(value = "是否关键人(0否1是)")
    @TableField("is_main")
    private Boolean isMain;

    @ApiModelProperty(value = "电子邮箱")
    @TableField("email")
    private String email;

    @ApiModelProperty(value = "QQ号")
    @TableField("qq")
    private String qq;

    @ApiModelProperty(value = "微信")
    @TableField("weixin")
    private String weixin;

    @ApiModelProperty(value = "联系地址")
    @TableField("contact_address")
    private String contactAddress;

    @ApiModelProperty(value = "爱好")
    @TableField("hobby")
    private String hobby;

    @ApiModelProperty(value = "忌讳")
    @TableField("taboo")
    private String taboo;

    @ApiModelProperty(value = "描述/备注")
    @TableField("remarks")
    private String remarks;

    @ApiModelProperty(value = "创建人id")
    @TableField("create_user_id")
    private Integer createUserId;

    @ApiModelProperty(value = "创建人")
    @TableField("create_user_name")
    private String createUserName;

    @ApiModelProperty(value = "创建人时间")
    @TableField("create_date")
    private LocalDateTime createDate;

    @ApiModelProperty(value = "类型(0:修改 1:删除)")
    @TableField("type")
    private Integer type;

    @ApiModelProperty(value = "自定义字段数据")
    @TableField("define_fields")
    private String defineFields;

    @ApiModelProperty(value = "操作人id")
    @TableField("operate_user_id")
    private Integer operateUserId;

    @ApiModelProperty(value = "操作人")
    @TableField("operate_user_name")
    private String operateUserName;

    @ApiModelProperty(value = "操作人时间")
    @TableField("operate_date")
    private LocalDateTime operateDate;
}
